<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="../common/common.jsp"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add User</title>
<style type="text/css">
body {
	background-color: gray;
	margin-left: 10px;
	margin-right: 10px;
	width: 800px;
	height: 650px;
}
</style>


</head>
<body>
	<div id="formDiv">

		<form:form action="common/addUser.htm" commandName="registerUser"
			enctype="multipart/form-data" id="addUserForm">
			<fieldset>
				<legend>Add User</legend>
				<table style="margin: 10px 10px 10px 10px;">

					<tr>
						<td>User Name:</td>
						<td><form:input path="userName" /></td>
						<td><form:errors path="userName" cssClass="error"></form:errors></td>
					</tr>
					<tr>
						<td>Password :</td>
						<td><form:input path="password" /></td>
						<td><form:errors path="password" cssClass="error"></form:errors></td>
					</tr>
					<tr>
						<td>Gender :</td>
						<td><label for="male">Male</label> <form:radiobutton
								path="userGender" value="1" id="male" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<label for="female">Female</label> <form:radiobutton
								path="userGender" value="0" id="female" /></td>
						<td><form:errors path="userGender" cssClass="error"></form:errors></td>
					</tr>
					<tr>
						<td>Date Of Birth:</td>
						<td id="datetimepicker4" class="input-append"><form:input
								path="userDob" class="add-on" id="datetimepicker4"
								data-format="yyyy-MM-dd" data-time-icon="icon-time"
								data-date-icon="icon-calendar" /></td>
						<td><form:errors path="userDob" cssClass="error"></form:errors></td>

					</tr>
					<tr>
						<td>Mobile Number:</td>
						<td><form:input path="userContact" /></td>
						<td><form:errors path="userContact" cssClass="error"></form:errors></td>
					<tr>
					<tr>
						<td>Email:</td>
						<td><form:input path="userEmailid" /></td>
						<td><form:errors path="userEmailid" cssClass="error"></form:errors></td>
					<tr>
					<tr>
						<td>Date Of Joining:</td>
						<td id="datetimepicker4" class="input-append"><form:input
								path="userDoj" class="add-on" id="datetimepicker4"
								data-format="yyyy-MM-dd" data-time-icon="icon-time"
								data-date-icon="icon-calendar" /></td>
						<td><form:errors path="userDoj" cssClass="error"></form:errors></td>

					</tr>
					<tr>
						<td>Upload Image:</td>

						<td><input type="file" name="studentImage" id="userImage" />
						</td>
						<td><form:errors path="userImage" cssClass="error"></form:errors></td>
					<tr>
						<td><input type="button" value="Add"></td>
						<td></td>
						<td></td>
					</tr>

				</table>
			</fieldset>
		</form:form>
	</div>


</body>
</html>